package com.JFapp.service;

import com.JFapp.domain.entity.Menu;
import com.JFapp.domain.entity.ResponseResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;


/**
 * 菜单权限表(Menu)表服务接口
 *
 * @author makejava
 * @since 2024-02-11 22:11:35
 */
public interface MenuService extends IService<Menu> {

    List<String> selectPermByUserId(Long id);

    List<Menu> selectRoutersMenuTreeByUserId(Long userId);


    ResponseResult changeMenuStatus(Long menuId, String status);

    ResponseResult getMenuById(Long menuId);

    ResponseResult getMenuList(String status, String menuName);

    ResponseResult getMenuTreeList();

    ResponseResult getRoleMenuTreeById(Long id);

    ResponseResult addMenu(Menu menu);

    ResponseResult deleteMenu(Long menuId);

    ResponseResult updateMenu(Menu menu);
}
